#pragma once
#include "..\GameLogic\IGrid.h"
#include "cocos2d.h"
using namespace cocos2d;
class CGrid :
	public IGrid
{
public:
	CGrid(CCSize size);

	CCTMXLayer * GetCCTMXLayer();
	void SetCCTMXLayer(CCTMXLayer *layer);
	bool LoadLevel();
	void RefreshDisplayLayer();
private:
	void ParseProperty(CCTMXLayer *layer);
	void ParseGrid(CCTMXLayer *layer);
private:
	CCTMXLayer *m_gameLayer;

};

